/**
 * \file Mutex.cpp
 * \brief Mutex declaration class for Linux platforms
 * \author Edouard ROGE
 * \date 01 September 2012
 */

#include "Mutex.h"

Mutex::Mutex()
{
	pthread_mutex_init(&m_Mutex, NULL);
}

Mutex::~Mutex()
{
}

error Mutex::Lock()
{
	return (pthread_mutex_lock(&m_Mutex)==0?errOK:errFailed);
}

error Mutex::Unlock()
{
	return (pthread_mutex_unlock(&m_Mutex)==0?errOK:errFailed);
}
